import Cookie from 'js-cookie'

const TokenKey = 'token'
export const getToken = () => {
  return Cookie.get(TokenKey)
}

export const setToken = (token) => {
  return Cookie.set(TokenKey, token, { expires: 7 })
}

export const removeToken = () => {
  return Cookie.remove(TokenKey)
}
